const state = {
  activeIndex: ''
}

const mutations = {
  CHANGE_ACTIVEINDEX: (state, { index }) => {
    state.activeIndex = index
  }
}

const actions = {
  changeActiveIndex({ commit }, index) {
    commit('CHANGE_ACTIVEINDEX', { index })
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
